home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / plot2fig / line.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-12  |  1.2 KB  |  32 lines

  1. /* plot, unix plot file to graphics device translators.
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4.    plot is distributed in the hope that it will be useful, but WITHOUT
  5.    ANY WARRANTY.  No author or distributor accepts responsibility to
  6.    anyone for the consequences of using it or for whether it serves any
  7.    particular purpose or works at all, unless he says so in writing.
  8.    Refer to the GNU General Public License for full details.
  9.    
  10.    Everyone is granted permission to copy, modify and redistribute plot,
  11.    but only under the conditions described in the GNU General Public
  12.    License.  A copy of this license is supposed to have been given to you
  13.    along with plot so you can know your rights and responsibilities.  It
  14.    should be in a file named COPYING.  Among other things, the copyright
  15.    notice and this notice must be preserved on all copies.  */
  16.  
  17. /* This file is the line routine, which is a standard part of the plot
  18.    library.  It draws a line from coordinate x0,y0 to x1,y1 */
  19.  
  20. #include "sys-defines.h"
  21. #include "libplot.h"
  22. #include "extern.h"
  23.  
  24. int
  25. line (x0, y0, x1, y1)
  26.      int x0, y0, x1, y1;
  27. {
  28.   move (x0,y0);
  29.   cont (x1,y1);
  30.   return 0;
  31. }
  32.